package com.qs.questionnairesurveysystem.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
class Area {

    String name;

    Integer Count;

}

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Report {

    Integer Men = 0;

    Integer Women = 0;

    List<Area> Areas = new ArrayList<>();

    public void addArea(String name, Integer count) {
        Area area = new Area();
        area.setName(name);
        area.setCount(count);
        Areas.add(area);
    }


}
